package com.woniuxy.cloud52.cinemaassembly.controller;


import com.woniuxy.cloud.ticket52.common.result.Result;
import com.woniuxy.cloud52.CinemaAPI;
import com.woniuxy.cloud52.cinemaassembly.model.Cinema;
import com.woniuxy.cloud52.cinemaassembly.model.MovieHall;
import com.woniuxy.cloud52.cinemaassembly.service.ICinemaService;
import com.woniuxy.cloud52.cinemaassembly.service.IMovieHallService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 影院信息 前端控制器
 * </p>
 *
 * @author rc
 * @since 2021-05-06
 */
@RestController
@Slf4j
public class CinemaController implements CinemaAPI {

    @Autowired
    private ICinemaService iCinemaService;



    @Override
    public Result getcinema(int cid) {
        log.info("查询影院{}",cid);
        Cinema cinema = iCinemaService.findByCid(cid);
        return Result.success(cinema);
    }
}

